/* eslint-disable no-unused-vars */
//1.引入vue
import Vue from 'vue'

//2.引入vue-router
import VueRouter from 'vue-router'

//引入路由所映射的组件
import Find from '../view/find'
import My from '../view/my'
import Part from '../view/part'
// 3.使用vue-router
Vue.use(VueRouter)

// 4.创建vue-router实例
const router = new VueRouter({
  routes: [
    {
      path: '/find',
      component: Find,
    },
    {
      path: '/my',
      component: My,
    },
    {
      path: '/part',
      component: Part,
    },
  ],
})

//5.导出router实列
export default router